package com.zhou.org.dto;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author lang.zhou
 * @since 2022-05-06
 */
@Data
public class BlackListSaveDto implements Serializable {

    private static final long serialVersionUID=1L;

    /**
     * 黑名单
     */
    private Integer id;

    /**
     * ip
     */
    @NotBlank
    private String host;

    /**
     * 封禁日期
     */
    @NotBlank
    private String createDt;

    /**
     * 解封日期
     */
    private String releaseDt;

    /**
     * 1-启用；0-停用
     */
    @NotNull
    private Boolean status = false;

    /**
     * 封禁原因
     */
    @NotBlank
    private String reason;

}
